﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    public enum NPCTypes
    {
        //枚举NPC的类别
        任务NPC,
        商贩NPC,
        铁匠NPC
    }
   abstract class NPC
    {
        private string name;
        private NPCTypes npctypes;
        //public string  Name { get; set; }

        //public string NPCTYPES { get; set; }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public NPCTypes Npctypes
        {
            get { return this.npctypes; }
            set { this.npctypes = value; }
        }
        public NPC() { }
        public NPC(string name, NPCTypes npctypes)
        {

            this.name = name;
            this.npctypes = npctypes;
        }
        public abstract void Speak();
    }
}
